package com.ittx.dzt.meituan.constant;

/**
 * 美团平台API接口常量
 *
 * @author gywang
 * @since 2024-07-30
 */
public class MeituanApiConstant {

    /**
     * 查询门店商品列表
     */
    public static final String GOODS_LIST = "/api/v1/gw/goods/list"; //(查询门店商品列表) cy.sku.onSale.download https://tscc.meituan.com/home/doc/bulkPurchasing/544
    /**
     * 查询商品详情
     */
    public static final String GOODS_DETAIL = "/api/v1/gw/goods/detail"; //(查询商品详情) cy.sku.download.bySpuID https://tscc.meituan.com/home/doc/bulkPurchasing/546
    /**
     * 批量修改商品上下架
     */
    public static final String GOODS_BATCHUPDATESTATUS = "/api/v1/gw/goods/batchUpdateStatus"; //(批量修改商品上下架) cy.sku.delisting、cy.sku.listing https://tscc.meituan.com/home/doc/bulkPurchasing/545
    /**
     * 发货，支持拆单，每次只能传一个包裹
     */
    public static final String ORDER_SHIP = "/api/v1/gw/order/perform";//(发货，支持拆单，每次只能传一个包裹) cy.shipment.dispatch https://tscc.meituan.com/home/doc/bulkPurchasing/504
    /**
     * 查询增量订单列表信息
     */
    public static final String ORDER_LIST = "/api/v1/gw/order/increment/list";//(查询增量订单列表信息) cy.salesOrder.download.byTimeFrame https://tscc.meituan.com/home/doc/bulkPurchasing/592
    /**
     * 查询订单详情信息
     */
    public static final String ORDER_DETAIL = "/api/v1/gw/order/detail";//(查询订单详情信息) cy.salesOrder.download.byOrderId https://tscc.meituan.com/home/doc/bulkPurchasing/512
    /**
     * 修改订单备注
     */
    public static final String ORDER_REMARK_UPDATE = "/api/v1/gw/order/remark/update";//(修改订单备注) cy.shipment.flagUpdate https://tscc.meituan.com/home/doc/bulkPurchasing/572
    /**
     * 查询支持的物流公司列表
     */
    public static final String CARRIER_DOWNLOAD = "/api/v1/gw/logistics/company/list";//(查询支持的物流公司列表) cy.carrierPlatform.download https://tscc.meituan.com/home/doc/bulkPurchasing/657
    /**
     * 批量查询订单退款信息
     */
    public static final String RETURN_BATCH_GET = "/api/v1/gw/order/batchGetRefundInfo";//(批量查询订单退款信息) cy.returnOrder.download.byOrderId https://tscc.meituan.com/home/doc/bulkPurchasing/510

    public static class Rocket {

        /**
         * 消费者分组名称统一前缀
         */
        public static final String CONSUMER_GROUP_PREFIX = "GID_TTX_EDI_";
        /**
         * 消费者TOPIC名称统一前缀
         */
        public static final String CONSUMER_TOPIC_PREFIX = "TOPIC_TTX_EDI_";

        /**
         * 批量拉数据转单个处理 分组
         */
        public static final String DOUYIN_BY_TIME_BATCH_SPLIT_GROUP = CONSUMER_GROUP_PREFIX + "DOUYIN_BY_TIME_BATCH_SPLIT";

        /**
         * 发批量拉数据转单个处理 topic,注意抖音的topic 需要在抖音都太的中间件中 添加分组和topic
         */
        public static final String DOUYIN_BY_TIME_BATCH_SPLIT_TOPIC = CONSUMER_TOPIC_PREFIX + "DOUYIN_BY_TIME_BATCH_SPLIT";
        /**
         * 商品 批量下载 转单个处理 Group
         */
        public static final String MEITUAN_PRODUCT_LIST_BY_TIME_BATCH_SPLIT_GROUP = CONSUMER_GROUP_PREFIX + "MEITUAN_PRODUCT_LIST_BY_TIME_BATCH_SPLIT";

        /**
         * 商品 批量下载 转单个处理 Topic
         */
        public static final String MEITUAN_PRODUCT_LIST_BY_TIME_BATCH_SPLIT_TOPIC = CONSUMER_TOPIC_PREFIX + "MEITUAN_PRODUCT_LIST_BY_TIME_BATCH_SPLIT";
        /**
         * 销售单 批量下载 转单个处理 Group
         */
        public static final String MEITUAN_DOWNLOAD_ORDER_SEARCHLIST_BY_TIME_BATCH_SPLIT_GROUP = CONSUMER_GROUP_PREFIX + "MEITUAN_DOWNLOAD_ORDER_SEARCHLIST_BY_TIME_BATCH_SPLIT";

        /**
         * 销售单 批量下载 转单个处理 Topic
         */
        public static final String MEITUAN_DOWNLOAD_ORDER_SEARCHLIST_BY_TIME_BATCH_SPLIT_TOPIC = CONSUMER_TOPIC_PREFIX + "MEITUAN_DOWNLOAD_ORDER_SEARCHLIST_BY_TIME_BATCH_SPLIT";

    }

    /**
     * api调用http方法
     */
    public class ApiHttpMethod {
        public static final String POST = "POST";
        public static final String GET = "GET";

    }

}
